package thread;

public class ThreadLocalTest {

    public static void main(String[] args) {
        ThreadLocal<String> threadLocal = new ThreadLocal() {
            @Override
            protected String initialValue() {
                return "lp";
            }
        };
        System.out.println(threadLocal.get());
        ThreadLocal<Integer> threadLocal2 = new ThreadLocal<>();
        System.out.println(threadLocal2.get());
        TestThread1 testThread1 = new TestThread1(threadLocal2, "thread1");
        TestThread1 testThread2 = new TestThread1(threadLocal2, "thread2");
        testThread1.start();
        testThread2.start();
threadLocal2.
    }

}
